package com.jprocms.module.cms.controller.admin.sensitivetask.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 敏感词扫描任务结果 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class TaskSensitiveResultBaseVO {

    @Schema(description = "站点ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1645")
    @NotNull(message = "站点ID不能为空")
    private Long siteId;

    @Schema(description = "内容ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22213")
    @NotNull(message = "内容ID不能为空")
    private Long contentId;

    @Schema(description = "内容标题", requiredMode = Schema.RequiredMode.REQUIRED)
    private String contentTitle;

    @Schema(description = "任务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "22213")
    @NotNull(message = "任务ID不能为空")
    private Long taskId;

    @Schema(description = "敏感词", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "敏感词不能为空")
    private String sensitiveWord;

}
